<?php
/* @var $this DistributionGiftNumberController */
/* @var $model DistributionGiftNumber */
/* @var $form CActiveForm */
?>

<div class="wide form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>

	<div class="row">
		<?php echo $form->label($model,'partners_id'); ?>
		<?php echo $form->textField($model,'partners_id',array('size'=>50,'maxlength'=>50)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'provide_time'); ?>
		 <input class="Wdate" type="text" name="DistributionGiftNumber[provide_time]" 
	 value="<?php echo $model->provide_time=='0000-00-00'?date("Y-m-d"):$model->provide_time;?>" onClick="WdatePicker({startDate:'%y-%M-01',dateFmt:'yyyy-MM-dd',alwaysUseStartDate:true})" />
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton(Yii::t('base','search')); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- search-form -->